- 
                Notifications
    You must be signed in to change notification settings 
- Fork 13.9k
          Port #[used] to new attribute parsing infrastructure
          #142818
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| 
 | 
| Some changes occurred in compiler/rustc_attr_parsing Some changes occurred in compiler/rustc_codegen_ssa Some changes occurred in compiler/rustc_codegen_ssa/src/codegen_attrs.rs Some changes occurred in compiler/rustc_attr_data_structures Some changes occurred in compiler/rustc_passes/src/check_attr.rs | 
44fa5f0    to
    073e2c6      
    Compare
  
    073e2c6    to
    468dd68      
    Compare
  
    | @rustbot author | 
| Reminder, once the PR becomes ready for a review, use  | 
| ☔ The latest upstream changes (presumably #142826) made this pull request unmergeable. Please resolve the merge conflicts. | 
468dd68    to
    674be35      
    Compare
  
    | @rustbot ready | 
e70cbef    to
    30d851d      
    Compare
  
    | Rebased to solve merge conflicts | 
| ☔ The latest upstream changes (presumably #142878) made this pull request unmergeable. Please resolve the merge conflicts. | 
be02b70    to
    0031aab      
    Compare
  
    | just to be clear @JonathanBrouwer, is the behavior right now exactly the same as before with regards to errors and which attribute applies in case of duplicates or not? | 
| @jdonszelmann When multiple different attributes are applied the behaviour has changed. This is fine because  What has changed: Before: Error, "compiler and linker can't be used together". This is a wrong error since  Before: No error, ratcheting behaviour so "linker " is used Before: Error | 
708f45f    to
    9b3f729      
    Compare
  
    | @jdonszelmann This one was not rebased on the encode-cross-crate PR yet, did that now ^ | 
| Ah I see | 
| Whoops | 
| @bors r+ | 
…=jdonszelmann Port `#[used]` to new attribute parsing infrastructure Ports `used` to the new attribute parsing infrastructure for rust-lang#131229 (comment) r? `@jdonszelmann`
| @bors r- | 
| ☔ The latest upstream changes (presumably #143074) made this pull request unmergeable. Please resolve the merge conflicts. | 
Signed-off-by: Jonathan Brouwer <[email protected]>
9b3f729    to
    9e35684      
    Compare
  
    | @jdonszelmann rebased ^ | 
| @bors r+ | 
…=jdonszelmann Port `#[used]` to new attribute parsing infrastructure Ports `used` to the new attribute parsing infrastructure for rust-lang#131229 (comment) r? `@jdonszelmann`
Rollup of 6 pull requests Successful merges: - #142270 (Rustdoc js: even more typechecking improvements) - #142420 (Report infer ty errors during hir ty lowering) - #142818 (Port `#[used]` to new attribute parsing infrastructure) - #143020 (codegen_fn_attrs: make comment more precise) - #143036 (Remove support for `dyn*` from the compiler) - #143060 (Only args in main diag are saved and restored without removing the newly added ones) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 10 pull requests Successful merges: - #142270 (Rustdoc js: even more typechecking improvements) - #142420 (Report infer ty errors during hir ty lowering) - #142671 (add #![rustc_no_implicit_bounds]) - #142721 (Add tracing to `InterpCx::layout_of()` ) - #142818 (Port `#[used]` to new attribute parsing infrastructure) - #143020 (codegen_fn_attrs: make comment more precise) - #143051 (Add tracing to `validate_operand`) - #143060 (Only args in main diag are saved and restored without removing the newly added ones) - #143065 (Improve recovery when users write `where:`) - #143084 (const-eval: error when initializing a static writes to that static) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #142818 - JonathanBrouwer:used_new_parser, r=jdonszelmann Port `#[used]` to new attribute parsing infrastructure Ports `used` to the new attribute parsing infrastructure for #131229 (comment) r? ``@jdonszelmann``
Rollup of 10 pull requests Successful merges: - rust-lang/rust#142270 (Rustdoc js: even more typechecking improvements) - rust-lang/rust#142420 (Report infer ty errors during hir ty lowering) - rust-lang/rust#142671 (add #![rustc_no_implicit_bounds]) - rust-lang/rust#142721 (Add tracing to `InterpCx::layout_of()` ) - rust-lang/rust#142818 (Port `#[used]` to new attribute parsing infrastructure) - rust-lang/rust#143020 (codegen_fn_attrs: make comment more precise) - rust-lang/rust#143051 (Add tracing to `validate_operand`) - rust-lang/rust#143060 (Only args in main diag are saved and restored without removing the newly added ones) - rust-lang/rust#143065 (Improve recovery when users write `where:`) - rust-lang/rust#143084 (const-eval: error when initializing a static writes to that static) r? `@ghost` `@rustbot` modify labels: rollup
Ports
usedto the new attribute parsing infrastructure for #131229 (comment)r? @jdonszelmann